package com.my.xq.domain.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.sskj.core.entity.BaseEntity;

@Entity
@Table(name = "xq_doorplate")
public class Doorplate extends BaseEntity {

	private static final long serialVersionUID = 1L;
	@Column(length = 40, nullable = false)
	private String doorplateNo; // 门牌号

	@Column(length = 40, nullable = false)
	private String courtId; // 对应的小区id

	@Column(length = 40)
	private String proprietorId; // 对应的业主id

	@Column(length = 40, nullable = false)
	private String building; // 楼栋号

	@Column(length = 40, nullable = false)
	private String unit; // 单元号

	@Column(length = 40, nullable = false)
	private String floor; // 楼层号

	@Column(length = 40, nullable = false)
	private String no; // 房间号

	@Column(length = 50)
	private String openId;

	@Column
	private int countUnit = 0; // 单元长投票数

	@Column
	private int countBuilding = 0; // 楼栋长投票数

	@Column
	private int countMember = 0; // 委员投票数

	@Column
	private int CountHead = 0; // 主任长投票数

	@Column
	private boolean isCastUnit = false; // 是否参与单元长

	@Column
	private boolean isCastBuilding = false; // 是否参与楼栋长

	@Column
	private boolean isCastMember = false; // 是否参与委员

	@Column
	private boolean isCastHead = false; // 是否参与主任

	@Column
	private boolean isRightUnit = false; // 是否单元长投票

	@Column
	private boolean isRightBuilding = false; // 是否栋长投票

	@Column
	private boolean isRightMember = false; // 是否委员投票

	@Column
	private boolean isRightHead = false; // 是否主任投票

	@Column(length = 40)
	private String unitVoteDoorplateId; // 单元长投票所投的门牌号ID

	@Column(length = 40)
	private String buildingVoteDoorplateId; // 楼栋长投票所投的门牌号ID

	@Column(length = 40)
	private String memberVoteDoorplateId; // 委员投票所投的门牌号ID

	@Column(length = 40)
	private String headVoteDoorplateId; // 主任投票所投的门牌号ID

	@Column
	private boolean isBing = false; // 是否绑定

	@Transient
	private String proprietorName;

	@Transient
	private String courtName;

	@Transient
	private String filePath;

	@Transient
	private String fileid;

	@Transient
	private String filesuffix;

	@Transient
	private List<String> courtIds = new ArrayList<String>();

	public String getDoorplateNo() {
		return doorplateNo;
	}

	public void setDoorplateNo(String doorplateNo) {
		this.doorplateNo = doorplateNo;
	}

	public String getCourtId() {
		return courtId;
	}

	public void setCourtId(String courtId) {
		this.courtId = courtId;
	}

	public String getProprietorId() {
		return proprietorId;
	}

	public void setProprietorId(String proprietorId) {
		this.proprietorId = proprietorId;
	}

	public List<String> getCourtIds() {
		return courtIds;
	}

	public void setCourtIds(List<String> courtIds) {
		this.courtIds = courtIds;
	}

	public String getProprietorName() {
		return proprietorName;
	}

	public void setProprietorName(String proprietorName) {
		this.proprietorName = proprietorName;
	}

	public String getCourtName() {
		return courtName;
	}

	public void setCourtName(String courtName) {
		this.courtName = courtName;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getBuilding() {
		return building;
	}

	public void setBuilding(String building) {
		this.building = building;
	}

	public String getFloor() {
		return floor;
	}

	public void setFloor(String floor) {
		this.floor = floor;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public int getCountUnit() {
		return countUnit;
	}

	public void setCountUnit(int countUnit) {
		this.countUnit = countUnit;
	}

	public int getCountBuilding() {
		return countBuilding;
	}

	public void setCountBuilding(int countBuilding) {
		this.countBuilding = countBuilding;
	}

	public int getCountMember() {
		return countMember;
	}

	public void setCountMember(int countMember) {
		this.countMember = countMember;
	}

	public int getCountHead() {
		return CountHead;
	}

	public void setCountHead(int countHead) {
		CountHead = countHead;
	}

	public boolean isCastUnit() {
		return isCastUnit;
	}

	public void setCastUnit(boolean isCastUnit) {
		this.isCastUnit = isCastUnit;
	}

	public boolean isCastBuilding() {
		return isCastBuilding;
	}

	public void setCastBuilding(boolean isCastBuilding) {
		this.isCastBuilding = isCastBuilding;
	}

	public boolean isCastMember() {
		return isCastMember;
	}

	public void setCastMember(boolean isCastMember) {
		this.isCastMember = isCastMember;
	}

	public boolean isCastHead() {
		return isCastHead;
	}

	public void setCastHead(boolean isCastHead) {
		this.isCastHead = isCastHead;
	}

	public boolean isBing() {
		return isBing;
	}

	public void setBing(boolean isBing) {
		this.isBing = isBing;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getFileid() {
		return fileid;
	}

	public void setFileid(String fileid) {
		this.fileid = fileid;
	}

	public String getFilesuffix() {
		return filesuffix;
	}

	public void setFilesuffix(String filesuffix) {
		this.filesuffix = filesuffix;
	}

	public boolean isRightUnit() {
		return isRightUnit;
	}

	public void setRightUnit(boolean isRightUnit) {
		this.isRightUnit = isRightUnit;
	}

	public boolean isRightBuilding() {
		return isRightBuilding;
	}

	public void setRightBuilding(boolean isRightBuilding) {
		this.isRightBuilding = isRightBuilding;
	}

	public boolean isRightMember() {
		return isRightMember;
	}

	public void setRightMember(boolean isRightMember) {
		this.isRightMember = isRightMember;
	}

	public boolean isRightHead() {
		return isRightHead;
	}

	public void setRightHead(boolean isRightHead) {
		this.isRightHead = isRightHead;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getUnitVoteDoorplateId() {
		return unitVoteDoorplateId;
	}

	public void setUnitVoteDoorplateId(String unitVoteDoorplateId) {
		this.unitVoteDoorplateId = unitVoteDoorplateId;
	}

	public String getBuildingVoteDoorplateId() {
		return buildingVoteDoorplateId;
	}

	public void setBuildingVoteDoorplateId(String buildingVoteDoorplateId) {
		this.buildingVoteDoorplateId = buildingVoteDoorplateId;
	}

	public String getMemberVoteDoorplateId() {
		return memberVoteDoorplateId;
	}

	public void setMemberVoteDoorplateId(String memberVoteDoorplateId) {
		this.memberVoteDoorplateId = memberVoteDoorplateId;
	}

	public String getHeadVoteDoorplateId() {
		return headVoteDoorplateId;
	}

	public void setHeadVoteDoorplateId(String headVoteDoorplateId) {
		this.headVoteDoorplateId = headVoteDoorplateId;
	}
}
